package cn.edu.scau.cmi.wujiaxian.exercise5;

public class Tixing {
	
	double above, bottom, height;
	public Tixing(double a, double b, double h) {
		above = a;
		bottom = b;
		height = h;
	}
	double getArea() {
		return (above + bottom) * height / 2;
	}
}

